<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<iframe id="external-form" src="${formUrl}" style="width:100%;min-height: 500px"></iframe>
</body>
<script>
    function setIframeHeight(iframe) {
        if (iframe) {
            var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
            if (iframeWin.document.body) {
                iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
            }
        }
    };

    window.onload = function () {
        setIframeHeight(document.getElementById('external-form'));
    };
</script>
<div>
    <form action="doFlow" method="post">
        <input name="taskId" type="hidden" value="${taskId}">
        审批意见：
        <textarea id="comment"></textarea>
        <br/>
        通过 <input name="choose" type="radio" value="1"/>
        不通过 <input name="choose" type="radio" value="0"/>
        <input type="submit">
    </form>
</div>
</html>
